
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Chance.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Chance)
{

        TEST(should be able to !chance value)
        {
               ASSERT_TRUE(Chance(0.8f) == !Chance(0.2f));
        }
        TEST(should be able to && two chance objects)
        {
               ASSERT_TRUE(Chance(0.16f) == (Chance(0.8f)&&Chance(0.2f)));
        }
        TEST(should be able to || two chance objects)
        {
               ASSERT_TRUE(Chance(0.5f) == (Chance(0.2f)||Chance(0.3f)));
        }
};


